package com.csxy.six.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "GoodsFavorite对象", description = "商品收藏信息")
public class GoodsFavorite implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fav_id", type = IdType.AUTO)
    private Integer favId;

    @Schema(name = "商品ID")
    private Integer goodsId;

    @Schema(name = "用户ID")
    private Integer userId;

    @Schema(name = "收藏时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime favTime;
}